package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.TestLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 孙润达
 * @Date: 2022/1/10 18:59
 */
@RestController
@RequestMapping("/admin/produck/test")
public class TestLockController {

    @Autowired
    private TestLockService testLockService;
     @GetMapping("/testLock")
    public Result testLock(){
         testLockService.testLock();
         return Result.ok();
     }
}
